//
//  MotionSensor.h
//  UAVClient
//
//  Created by visu4l on 11. 7. 1..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreMotion/CoreMotion.h>

@interface MotionSensor : NSObject {
    
    CMMotionManager *motionManager;
    CMDeviceMotion *motion;
    CMAttitude *attitude;
    NSTimer *timer;
    
    short roll;
    short pitch;
    short yaw;
}

@property (nonatomic, retain) CMDeviceMotion *motion;
@property (nonatomic, retain) CMAttitude *attitude;

@property short roll;
@property short pitch;
@property short yaw;


-(void) updateGyro;

@end
